package kr.hkit.androidcomplete01.ch14;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.Button;

public class AttrButton extends Button {
	StringBuilder mText;
	public AttrButton(Context context, AttributeSet attrs) {
		super(context, attrs);
		mText = new StringBuilder();
		String name;
		String value;
		for(int i=0; i<attrs.getAttributeCount(); i++){
			name=attrs.getAttributeName(i);
			value = attrs.getAttributeValue(i);
			mText.append(name + " = " + value + "\n");
		}
	}

}
